import request from './service'
export const imgUrl = 'http://123.54.1.133:8677/prod-api'
export const loginApi = (params) => request('/au/weiXinMp/callback', params, 'get') //登入
export const departmentApi = (params) => request('/business/registration/getDepartments', params, 'get') //查询科室列表
export const doctorApi = (params) => request('/business/registration/doctors', params, 'get') //查询科室医生
export const doctortimeApi = (params) => request('/business/registration/doctorTimes', params, 'get') //获取排班分时段  排班信息
export const adduserApi = (params) => request('/business/user/addHisUser', params, 'post') //自助建档绑卡
export const userlistApi = (params) => request('/business/user/list', params, 'get') //自助建档绑卡
export const recordsApi = (params) => request('/business/query/getRecords', params, 'get') //查询清单
export const infoApi = (id) => request('/business/user/getInfo/' + id, 'get') //就诊人详情
export const removeApi = (id) => request('/business/user/remove/' + id, 'get') //解除绑定
export const createApi = (params) => request('/business/order/create', params, 'post') //微信门诊充值，住院充值，门诊缴费
export const costpayApi = (params) => request('/business/cost/costPayList', params, 'get') //门诊待缴费列表
export const refundApi = (params) => request('/business/cost/costPayReturnList', params, 'get') //门诊缴费可退费单据信息查询
export const refundApiAll = (params) => request('/business/cost/mzRefundList', params, 'get') //门诊缴费和门诊充值可退费单据信息查询
export const mzrefundApi = (params) => request('/business/cost/costPaymentReturn', params, 'post') //门诊缴费退费
export const costrefundApi = (params) => request('/business/cost/mzRefund', params, 'post') //门诊退费
export const registrationApi = (params) => request('/business/registration/submitRegistration', params, 'post') //挂号
export const cancelApi = (params) => request('/business/registration/cancelRegistration', params, 'post') //取消挂号
export const payApi = (params) => request('/business/cost/pay', params, 'post') //就诊卡门诊缴费
export const registrationlistApi = (params) => request('/business/registration/queryRegistrationList', params,
	'get') //挂号列表
export const hospitalInfoApi = (params) => request('/business/hospital/hospitalInfo', params, 'get') //医院信息
export const departmentInfoApi = (params) => request('/business/hospital/department', params, 'get') //科室信息
export const doctorsdepartApi = (params) => request('/business/hospital/doctors', params, 'get') //科室专家信息
export const doctorsInfoApi = (params) => request('/business/hospital/doctorInfo', params, 'get') //专家详情
export const appointApi = (params) => request('/business/query/registrations', params, 'get') //挂号记录
export const ordersApi = (params) => request('/business/query/orders', params, 'get') //我的订单
export const mzRefundOld = (params) => request('/business/cost/mzRefundOldList', params, 'get') //历史退款列表
export const oldPay = (params) => request('/business/cost/mzOldRefund', params, 'post') //历史退款列表